package com.abc.cloud.service;

import com.abc.cloud.dto.user.UserKeyCode;
import com.abc.cloud.dto.user.UserSpace;
import com.abc.cloud.dto.user.UserInfoAndRole;
import com.baomidou.mybatisplus.extension.service.IService;
import com.abc.cloud.common.utils.PageUtil;
import com.abc.cloud.entity.UserEntity;

import java.util.List;
import java.util.Map;

/**
 * 用户表
 *
 * @author LiJunXi
 * @email 2770063826@qq.com
 * @date 2023-10-27 13:09:54
 */
public interface UserService extends IService<UserEntity> {

    PageUtil queryPage(Map<String, Object> params);

    UserSpace queryUserSpace(Long userId);

    UserEntity userLogin(UserEntity user);

    UserEntity adminLogin(UserEntity user);

    UserInfoAndRole getUserInfoRole(Long userId);

    void setLastLoginTime(Long id);

    PageUtil getUserList(Map<String, Object> params);

    void updateUserStatus(List<Long> userIds,Integer status);

    String addUser(UserKeyCode user);

    boolean saveFile(Long userId,Long fileSize);

    UserSpace getSpace(Long userId);
}

